﻿using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using System.Windows;
using System.Windows.Controls;
using System.Windows.Data;
using System.Windows.Documents;
using System.Windows.Input;
using System.Windows.Media;
using System.Windows.Media.Imaging;
using System.Windows.Navigation;
using System.Windows.Shapes;

namespace ExplorerEx
{
    /// <summary>
    /// TabEx.xaml 的交互逻辑
    /// </summary>
    public partial class TabEx : UserControl
    {
        private bool isT;

        public bool IsT
        {
            get { return isT; }
            set
            {
                isT = value;
                AAA.IsChecked = value;
            }
        }
        private string? bb;

        public string? BB
        {
            get { return bb; }
            set
            {
                bb = value;
                BBB.Content = value;
            }
        }

        public TabEx()
        {
            InitializeComponent();
        }

        private void CloseBtn_MouseLeave(object sender, MouseEventArgs e)
        {
            CloseBtn.Background.Opacity = 0;

        }

        private void CloseBtn_MouseMove(object sender, MouseEventArgs e)
        {
            CloseBtn.Background.Opacity = 50;

        }

        private void CloseBtn_MouseUp(object sender, MouseButtonEventArgs e)
        {
            AAA.IsChecked = IsT;
        }
    }
}
